Typing linear algebra: A biproduct-oriented approach

نویسندگان

  • Hugo Daniel Macedo
  • José Nuno Oliveira
چکیده

Interested in formalizing the generation of fast running code for linear algebra applications, the authors show how an index-free, calculational approach to matrix algebra can be developed by regarding matrices as morphisms of a category with biproducts. This shifts the traditional view of matrices as indexed structures to a type-level perspective analogous to that of the pointfree algebra of programming. The derivation of fusion, cancellation and abide laws from the biproduct equations makes it easy to calculate algorithms implementing matrix multiplication, the central operation of matrix algebra, ranging from its divide-and-conquer version to its vectorization implementation. From errant attempts to learn how particular products and coproducts emerge from biproducts, not only blocked matrix algebra is rediscovered but also a way of extending other operations (e.g. Gaussian elimination) blockwise, in a calculational style, is found. The prospect of building biproduct-based type checkers for computer algebra systems such as MATLABTM is also considered.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Matrices As Arrows! A Biproduct Approach to Typed Linear Algebra

Motivated by the need to formalize generation of fast running code for linear algebra applications, we show how an index-free, calculational approach to matrix algebra can be developed by regarding matrices as morphisms of a category with biproducts. This shifts the traditional view of matrices as indexed structures to a type-level perspective analogous to that of the pointfree algebra of progr...

متن کامل

L-R-smash biproducts, double biproducts and a braided category of Yetter-Drinfeld-Long bimodules

Let H be a bialgebra and D an H-bimodule algebra and H-bicomodule coalgebra. We find sufficient conditions on D for the L-R-smash product algebra and coalgebra structures on D ⊗ H to form a bialgebra (in this case we say that (H,D) is an L-R-admissible pair), called L-R-smash biproduct. The Radford biproduct is a particular case, and so is, up to isomorphism, a double biproduct with trivial pai...

متن کامل

A Method of Constructing Braided Hopf Algebras

Let A and B be two Hopf algebras and R ∈ Hom(B ⊗ A, A ⊗ B), the twisted tensor product Hopf algebra A#RB was introduced by S. Caenepeel et al in [3] and further studied in our recent work [6]. In this paper we give the necessary and sufficient conditions for A#RB to be a Hopf algebra with a projection. Furthermore, a braided Hopf algebra A is constructed by twisting the multiplication of A thro...

متن کامل

The quantum double for quasitriangular quasi-Hopf algebras

Let D(H) be the quantum double associated to a finite dimensional quasi-Hopf algebra H, as in [9] and [10]. In this note, we first generalize a result of Majid [15] for Hopf algebras, and then prove that the quantum double of a finite dimensional quasitriangular quasi-Hopf algebra is a biproduct in the sense of [4].

متن کامل

Design of a Parallel Object-Oriented Linear Algebra Library

Scientific programmers are eager to exploit the computational power offered by Distributed Memory Parallel Computers (DMPCs), but are generally reluctant to undertake the manual porting of their application programs onto such machines. A possible solution to this problem consists in using libraries that hide the details of parallel computations. We show how to go one step beyond, using the full...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • Sci. Comput. Program.

دوره 78  شماره 

صفحات  -

تاریخ انتشار 2013